<?
header("Content-type: text/css; charset=utf-8");

$query  = $_SERVER["QUERY_STRING"];

if(preg_match('/^(css)/', $query)){
	$query = explode("&", $query);
	header("Content-type: text/css; charset=utf-8");
	if(preg_match('/^([a-z,])+$/', $query[1])){
		$file_array  = explode(",", $query[1]); 
		foreach($file_array as $value){
			require('./css/'. $value .'.css');	
		}
	}

}else if(preg_match('/^(js)/', $query)){
	$query = explode("&", $query);
	header("Content-type: text/javascript; charset=utf-8");
	if(preg_match('/^([a-z,])+$/', $query[1])){
		$file_array  = explode(",", $query[1]); 
		foreach($file_array as $value){
			require('./js/'. $value .'.js');	
		}
	}
}

?>